<?php
$cs=Yii::app()->clientScript;
$cs->registerCssFile(Yii::app()->params->cssBaseUrl.'/themes/kitchen.css','screen');
$cs->registerCssFile(Yii::app()->params->cssBaseUrl.'/themes/kitchen_header.css','all');
?>

<div class="main650" id="main">
  <div id="main-cont-top-650"></div>

  <div id="two-col-left">
    <div id="add_mynews_member">
      <?php echo CHtml::image(Yii::app()->params->sysImageBaseUrl.'/shared/date_add.gif','Date_add',array('style'=>'vertical-align: middle;')); ?>
      <?php echo CHtml::link('关注此人'); ?>
      <span style="color: rgb(204, 204, 204);">(被</span>
      <span id="mynews_subscriber_num" style="color: rgb(204, 204, 204);">0</span>
      <span style="color: rgb(204, 204, 204);">人关注)</span>
    </div>
    
    <div id="kitchen-header">
      <table cellspacing="0" cellpadding="0" class="kitchen-header">
        <tbody>
          <tr>
            <td class="title-colmun">
              <h1 class="font20">
                <?php echo CHtml::link(CHtml::encode($user->name).'的厨房',array()); ?>
              </h1>
            </td>
            <td valign="top" rowspan="2" class="image-colmun">
              <span class="user-name font14">
                <?php echo CHtml::encode($user->name); ?> 
              </span>
              <?php echo CHtml::image(Yii::app()->params->sysImageBaseUrl.'/themes/kitchen/profile.gif','',array('height'=>"48",'width'=>"48")); ?>
            </td>
          </tr>
          <tr>
            <td style="height: 10px;">
              <ul class="list-nav" id="kitchen-header-nav">
                <li class="font13 kitchen-top small_selected">
                  <?php echo CHtml::link('封面',array(),array('class'=>"kitchen-top")); ?>
                </li>
                <li class="font13 kitchen-recipe large_normal">
                  <?php echo CHtml::link('食谱',array('/user/listRecipe','id'=>$user->id),array('class'=>'kitchen-recipe')); ?>
                </li>
                <li class="font13 kitchen-tsukurepo large_normal">
                  <?php echo CHtml::link('图片',array('/user/listPhoto','id'=>$user->id),array('class'=>'kitchen-tsukurepo')); ?>
                </li>
                <li class="font13 kitchen-diary large_normal">
                  <?php echo CHtml::link('日记',array('/user/listDiary','id'=>$user->id),array('class'=>'kitchen-diary')); ?>                
                </li>
              </ul>
            </td>
          </tr>
        </tbody>
      </table>
    </div>

    <div class="main-cont">
      <div style="">
        <div style="background: transparent url(http://img6.cookpad.com/kitchen/p/674/100/A575A57C4A2E124693790C9783453B6A.jpg?1248233369) no-repeat scroll 0% 0%; overflow: hidden; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: white; height: 130px;" class="welcome-message-box-image" id="welcome-message-box">
          <div style="margin: 5px; font-weight: bold;">
            <div id="kitchen_welcome_message_1461618_in_place_editor" color='white' class="in_place_editor_field" title="" style="color: white; background-color: transparent;">
              my cook book
            </div>
          </div>
        </div>
        
            <!--div style="margin: 5px 0pt 10px; text-align: right;">
            <form style="float: right;" method="post" id="edit_kitchen_1461618" class="edit_kitchen" action="/kitchen/1461618"><div style="margin: 0pt; padding: 0pt;"><input type="hidden" value="put" name="_method"/><input type="hidden" value="022ae1a6ab142142a79f6602671432a7" name="token" id="token"/></div>
            <span class="font12">
              <?php echo CHtml::image(Yii::app()->params->sysImageBaseUrl.'/icon/image.gif','Image',array('style'=>'vertical-align: middle;')); ?>
              <a params="lightwindow_width=500,lightwindow_height=130,lightwindow_type=external" class="lightwindow" href="/kitchen/image_upload/1461618">封面图片</a>　
            </span>

            <span class="font12">
              <img style="vertical-align: middle;" src="/images/partial/edit.gif?1248689277" alt="Edit"/>
              文字色：
            </span>
            <input type="radio" value="white" style="vertical-align: middle;" onclick="new Ajax.Request('/kitchen/toggle_welcome_message_color/1461618?color=white', {asynchronous:true, evalScripts:true}),
            $('kitchen_welcome_message_1461618_in_place_editor').style.color = 'white';" name="kitchen[welcome_message_color]" id="kitchen_welcome_message_color_white" checked="checked"/>□
            <input type="radio" value="black" style="vertical-align: middle;" onclick="new Ajax.Request('/kitchen/toggle_welcome_message_color/1461618?color=black', {asynchronous:true, evalScripts:true}),
            $('kitchen_welcome_message_1461618_in_place_editor').style.color = 'black';" name="kitchen[welcome_message_color]" id="kitchen_welcome_message_color_black"/>■
            </form>        <div class="clear"></div>
          </div-->
           
      </div>
      
      <div class="cont-wrapper">
        <div id="separate-title">
          <h2 class="separate-left font16">
            最新食谱
          </h2>
          <p class="separate-right">
            <?php echo CHtml::link('查看',array('/user/listRecipe','id'=>$user->id),array('class'=>'kitchen-recipe')); ?>
          </p>
          <div class="clear">
          </div>
        </div>
              
        <div class="message">
          <?php if($edit) echo CHtml::link('创建食谱',array('/recipe/create')); ?>
        </div>
      </div>

      <div class="cont-wrapper">
        <div id="separate-title">
          <h2 class="separate-left font16">
            最新图片
          </h2>
          <p class="separate-right">
            <?php echo CHtml::link('查看',array('/user/listPhoto','id'=>$user->id),array('class'=>'kitchen-recipe')); ?>
          </p>
          <div class="clear"></div>
        </div>

        <div class="message">
          暂无
        </div>
      </div>

    </div><!--main-cont-->


    <div class="sub-cont">
      <div style="overflow: hidden;" class="cont-wrapper">
        <h2 style="font-size: 108%;" class="title">
        自我描述
      </h2>
      <p>
      </p>
      <div id="kitchen_self_description_1461618_in_place_editor" class="in_place_editor_field" title="" style="background-color: transparent;">
        <?php echo CHtml::encode($user->description); ?>
      </div>
    </div>

      <div style="overflow: hidden;" class="cont-wrapper">
        <h2 style="font-size: 108%;" class="title">
          最新日记
         </h2>
        <div class="message">
          没有日记
        </div>
      </div>
    </div><!--sub-cont-->
  </div>
  
  <div class="clear"></div>
  <div id="main-cont-bottom-650"></div>
</div>
